package org.sensornet2010.alpha;

import java.util.Date;

public class SensorData {
	
	private byte[] 		sound;
	private Date 		timestamp;
	private String 		id;
	private long		duration;
	private String		sensuinoVersion;
	
	public SensorData(String sensorId, byte[] acqSignal){
		this.id = sensorId;
		this.sound = acqSignal;
		this.timestamp = new Date();
		this.duration = acqSignal.length;
	}
	
	public void setSound(byte[] sound) {
		this.sound = sound;
	}
	public byte[] getSound() {
		return sound;
	}
	public void setTimestamp(Date timestamp) {
		this.timestamp = timestamp;
	}
	public Date getTimestamp() {
		return timestamp;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getId() {
		return id;
	}
	public void setDuration(long duration) {
		this.duration = duration;
	}
	public long getDuration() {
		return duration;
	}

	public void setSensuinoVersion(String sensuinoVersion) {
		this.sensuinoVersion = sensuinoVersion;
	}

	public String getSensuinoVersion() {
		return sensuinoVersion;
	}
	
	
	
	
}
